#include<iostream>
#include<string.h>
using namespace std;

void ReverseStr(char s[]){
    int i,j;
    char tmp;
    for(i = 0,j = strlen(s)-1;i < (strlen(s)/2);i++,j--){
        tmp = s[i];
        s[i] = s[j];
        s[j] = tmp;
    }
    return ;
}
int main(){
    char s[] = "faohjgahoih";
    ReverseStr(s);
    cout<<s<<"  "<<strlen(s)<<endl;
    return 0;
}